//
//  NoticeTableViewCell.m
//  gpos_app
//
//  Created by 崔航飞 on 2018/8/25.
//  Copyright © 2018年 apple. All rights reserved.
//

#import "NoticeTableViewCell.h"

@implementation NoticeTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.smallBtn.layer.cornerRadius=5;
    self.smallBtn.clipsToBounds=YES;
    // Initialization code
}
- (IBAction)deleButton:(UIButton *)sender {
    if (self.delegate && [self.delegate respondsToSelector:@selector(deleCell:withButton:)])
    {
        [self.delegate deleCell:self withButton:sender];
    }
}
-(void)setMode:(MerChantModel *)mode{
    
    self.nameLab.text=[NSString stringWithFormat:@"%@",mode.name];
    self.descLab.text=[NSString stringWithFormat:@"%@",mode.phone];
    if ([mode.type isEqualToString:@"1"])//0未读消息,1已读消息
    {
        self.nameLab.textColor=[UIColor grayColor];
        self.descLab.alpha=0.6;
        self.smallBtn.hidden=YES;
        self.leftBtn.selected=YES;
    }else{
        
        self.smallBtn.hidden=NO;
        self.leftBtn.selected=NO;
    }
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
